@extends('Admin.layout.layout')
@section('title')
<title>LAMP178官网 - 后台商品属性修改</title>
@endsection
@section('con')
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">商品修改</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                Basic Form Elements
            </div>
            <div class="panel-body">
                <div class="row">
                        
                 
                    <div class="col-lg-6 col-lg-offset-3">
             	
                        <form role="form" action="{{url('/admin/goods/update')}}" method="post" enctype="multipart/form-data">
                            <div class="form-group">
                                <label>商品名称</label>
                                <input class="form-control" name="name" value="{{$goods[0]->name}}">
                            </div>
                            <div class="form-group">
                                <label>商品介绍</label>
                                <input class="form-control" type="text" name="intro" value="{{$goods[0]->intro}}">
                            </div>
                            <div class="form-group">
                                <label>商品参数</label>
                                <input class="form-control" type="text" name="parameter" value="{{$goods[0]->parameter}}">
                            </div>
                           
                             <div class="form-group">
                                <label>商品评论</label>
                                <input class="form-control" type="text" name="content" value="{{$goods[0]->content}}">
                            </div>
                          
                            <div class="form-group">
                                <label>商品图片</label>
                                <input type="file" name="photo">
                                <img src="{{$goods[0]->photo}}" width="100px">
                            </div>
                            <input type="hidden" name="id" value="{{$goods[0]->id}}">
                            {{csrf_field()}}
                         <button class="btn btn-danger" type="submit">修改</button>
                            <button class="btn btn-danger" type="reset">重置</button>
                        </form>
                     
                    </div>
                  
                </div>
                <!-- /.row (nested) -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.col-lg-12 -->
</div>
@endsection